<html><head><title>API</title><link rel="stylesheet" href="/Content/noke/css/bootstrap.min.css" /><link rel="stylesheet" href="/Content/noke/js/plugins/editormd/editormd.css" /></head><body><section class="container features"><div class="markdown-body editormd-preview-container" previewcontainer="true" style="padding: 20px;"><p><strong>简要描述：</strong> 用户注册接口</p>
<p><strong>请求URL：</strong> <code>http://xx.com/api/user/register</code></p>
<p><strong>请求方式：</strong> - POST </p>
<p><strong>参数：</strong></p>
<table>
<thead>
<tr>
<th style="text-align:left">参数名</th>
<th style="text-align:left">必选</th>
<th style="text-align:left">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">username</td>
<td style="text-align:left">是</td>
<td style="text-align:left">string</td>
<td>用户名</td>
</tr>
<tr>
<td style="text-align:left">password</td>
<td style="text-align:left">是</td>
<td style="text-align:left">string</td>
<td>密码</td>
</tr>
<tr>
<td style="text-align:left">name</td>
<td style="text-align:left">否</td>
<td style="text-align:left">string</td>
<td>昵称</td>
</tr>
</tbody>
</table>
<p> <strong>返回示例</strong></p>
<pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code><span class="pln">  </span><span class="pun">{</span></code></li><li class="L1"><code><span class="pln">    </span><span class="str">"error_code"</span><span class="pun">:</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span></code></li><li class="L2"><code><span class="pln">    </span><span class="str">"data"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">{</span></code></li><li class="L3"><code><span class="pln">      </span><span class="str">"uid"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"1"</span><span class="pun">,</span></code></li><li class="L4"><code><span class="pln">      </span><span class="str">"username"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"12154545"</span><span class="pun">,</span></code></li><li class="L5"><code><span class="pln">      </span><span class="str">"name"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"吴系挂"</span><span class="pun">,</span></code></li><li class="L6"><code><span class="pln">      </span><span class="str">"groupid"</span><span class="pun">:</span><span class="pln"> </span><span class="lit">2</span><span class="pln"> </span><span class="pun">,</span></code></li><li class="L7"><code><span class="pln">      </span><span class="str">"reg_time"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"1436864169"</span><span class="pun">,</span></code></li><li class="L8"><code><span class="pln">      </span><span class="str">"last_login_time"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"0"</span><span class="pun">,</span></code></li><li class="L9"><code><span class="pln">    </span><span class="pun">}</span></code></li><li class="L0"><code><span class="pln">  </span><span class="pun">}</span></code></li></ol></pre><p> <strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align:left">参数名</th>
<th style="text-align:left">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">groupid</td>
<td style="text-align:left">int</td>
<td>用户组id，1：超级管理员；2：普通用户</td>
</tr>
</tbody>
</table>
<p> <strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li></ul>
</div></section></body></html>